<?php 
require_once 'Image.php';
require_once 'Database.php';
require_once 'News.php';
$db=new DB();
if (isset($_GET['article'])) {
	$article = $db->extractArticle($_GET['article']);
} else {
	header("location:index.php");
	die();
}
?>
 <div id="content">
    <div class="wrapper">
		<div class="content">
	        <div class="indent" id="text">
	        	<h2> <?php  echo $article->getName();?></h2><br/>
	        	<?php echo $article->getText();?>
		</div>				
      </div>
    </div>
  </div>


